package cn.jingyinghui.testlambda;

import cn.jingyinghui.testlambda.pojo.Apple;

import java.util.ArrayList;
import java.util.List;

public class AppleUtils {

    public static void getAppleInfo(List<Apple> appleList, AppleFormatterInter appleFormatterInter){
        for(Apple apple:appleList){
            System.out.println((appleFormatterInter.accept(apple)));
        }
    }
}
